package com.iot.comprehensive.face.utils;

public enum ResultCode {
    SUCCESS(true,200,"操作成功！"),
    FAIL(false,300,"操作失败"),
    SERVER_ERROR(false,400,"系统繁忙"),
    UN_AUTHORISE(false,301,"权限不足"),
    UN_LOGIN(false,302,"未登录");

    boolean success;
    int code;
    String message;
    ResultCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
    public boolean success(){
        return success;
    }
    public int code(){
        return code;
    }
    public String message(){
        return message;
    }
}
